package oop.core.view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import oop.core.RunGame;
import oop.core.view.MainMenu;

/**
 * Takes the user back to the MainMenu by clicking a button
 * @author Alex
 *
 */
public class ToMainMenuListener implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent e) {
		RunGame.changePanel(MainMenu.ID);
	}

}
